package com.office.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.office.system.mapper.SysStockRecordsMapper;
import com.office.system.domain.SysStockRecords;
import com.office.system.service.ISysStockRecordsService;

/**
 * 入库记录管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-17
 */
@Service
public class SysStockRecordsServiceImpl implements ISysStockRecordsService 
{
    @Autowired
    private SysStockRecordsMapper sysStockRecordsMapper;

    /**
     * 查询入库记录管理
     * 
     * @param recordId 入库记录管理主键
     * @return 入库记录管理
     */
    @Override
    public SysStockRecords selectSysStockRecordsByRecordId(Long recordId)
    {
        return sysStockRecordsMapper.selectSysStockRecordsByRecordId(recordId);
    }

    /**
     * 查询入库记录管理列表
     * 
     * @param sysStockRecords 入库记录管理
     * @return 入库记录管理
     */
    @Override
    public List<SysStockRecords> selectSysStockRecordsList(SysStockRecords sysStockRecords)
    {
        return sysStockRecordsMapper.selectSysStockRecordsList(sysStockRecords);
    }

    /**
     * 新增入库记录管理
     * 
     * @param sysStockRecords 入库记录管理
     * @return 结果
     */
    @Override
    public int insertSysStockRecords(SysStockRecords sysStockRecords)
    {
        return sysStockRecordsMapper.insertSysStockRecords(sysStockRecords);
    }

    /**
     * 修改入库记录管理
     * 
     * @param sysStockRecords 入库记录管理
     * @return 结果
     */
    @Override
    public int updateSysStockRecords(SysStockRecords sysStockRecords)
    {
        return sysStockRecordsMapper.updateSysStockRecords(sysStockRecords);
    }

    /**
     * 批量删除入库记录管理
     * 
     * @param recordIds 需要删除的入库记录管理主键
     * @return 结果
     */
    @Override
    public int deleteSysStockRecordsByRecordIds(Long[] recordIds)
    {
        return sysStockRecordsMapper.deleteSysStockRecordsByRecordIds(recordIds);
    }

    /**
     * 删除入库记录管理信息
     * 
     * @param recordId 入库记录管理主键
     * @return 结果
     */
    @Override
    public int deleteSysStockRecordsByRecordId(Long recordId)
    {
        return sysStockRecordsMapper.deleteSysStockRecordsByRecordId(recordId);
    }
}
